<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/commend.css" />
</head>
<body>
<h2>商品 -- 评价列表</h2>
<div id="list">
    <table>
        <tr><th>商品名称</th><th>评价用户</th><th>评价内容</th><th>评价星级</th><th>回复内容</th><th>操作</th></tr>
        {foreach from=$allCommend key=key item=value}    
        <tr><td>{$value->name|truncate:25}</td><td>{$value->user}</td><td>{$value->content}</td><td>
         {if $value->star == 5}<span class="star">★★★★★</span>{/if}
         {if $value->star == 4}<span class="star">★★★★</span>{/if}
         {if $value->star == 3}<span class="star">★★★</span>{/if}
         {if $value->star == 2}<span class="star">★★</span>{/if}
         {if $value->star == 1}<span class="star">★</span>{/if}
        </td><td>{if $value->re_content == ''}<span style="color:red">尚未回复</span>{else}{$value->re_content|truncate:15}{/if}</td><td> <a href="?a=commend&m=update&id={$value->id}&name={$value->name}"><img src="view/admin/images/edit.gif" alt="编辑" title="编辑"/></a> <a href="?a=commend&m=delete&id={$value->id}"><img src="view/admin/images/drop.gif" alt="删除" title="删除" onclick="return confirm('评论删除后，用户可以重新对该订单的商品进行重新评价\r\n如果您想屏蔽评论，请到修改里进行操作!\r\n确认删除?') ? true : false;"/></a></td></tr>
        {foreachelse}
        <tr><td colspan="5">没有任何数据</td></tr>
        {/foreach}
    </table>
</div>
<div id="page">{$page}</div>
</body>
</html>